#ifndef CClientState_H
#define CClientState_H
/********************************************************************************
** @ Date:2025/05/20
** @ Author: HanJiaXin
** @ Description:客户端状态刷新界面
** @ Version:1.0.0
** @ ClassName:CClientState
** @ Fun:
********************************************************************************/

#include <QWidget>
#include <QTimer>
#include "ui_cclientstate.h"
#include "cclientdata.h"

class CClientState : public QWidget
{
	Q_OBJECT

public:
	CClientState(CClientData* pClient,QWidget *parent = nullptr);
	~CClientState();

private:
	void setName();

private slots:
	void slotDataFlush();//定时刷新槽函数

private:
	Ui::CClientStateClass ui;
	CClientData* m_pClient;
	QTimer* m_pTimer;
	QString m_sNormalLamp;//指示灯灭样式表字符串
	QString m_sWorkLamp;//指示灯绿灯样式表字符串
	QString m_sAlarmLamp;//指示红灯样式表字符串
	QString m_sWarningLamp;//指示黄灯样式表字符串
};
#endif
